package com.sd365.gateway.authentication.api.controller;

import com.sd365.gateway.authentication.api.AuthenticationApi;
import com.sd365.gateway.authentication.service.AuthenticationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 登录认证模块 controller类
 * @author LaiRuiQing
 * @date 2023/3/8
 * @className AuthenticationController
 * @version 1.0
*/
@Slf4j
@RestController
public class AuthenticationController implements AuthenticationApi {
    /**
     * 认证服务
     */
    @Autowired
    private  AuthenticationService authenticationService;

    @Override
    public String getToken(String code, String account, String password) {
       return authenticationService.getToken(code, account, password);
    }
}
